﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class KbArticleBase
    {
        private string articleId = "00000000-0000-0000-0000-000000000000";
        private string categoryid = "00000000-0000-0000-0000-000000000000";
        private string categoryname = "";
        private int typecode = 0;
        private string title = "";
        private decimal articleNumber = 0;
        private string keyword = "";
        private string content = "";
        private string author = "";
        private string source = "";
        private string copyright = "";
        private bool isShowIndex = false;
        private bool isapproved = true;
        private bool istop = false;
        private int statuscode = 0;
        private string createdby = "00000000-0000-0000-0000-000000000000";
        private DateTime createdon;
        private string modifiedby = "00000000-0000-0000-0000-000000000000";
        private DateTime modifiedon;
        private string createbyname = "";
        private string titlepic = "";
        private string newsurl = "";
        private int sourcetype = 0;
        private string resume = "";
        private string tags = "";
        private long hits = 0;  
        private DateTime publishdate;

        public KbArticleBase()
        { }

        /// <summary>
        /// 所属目录
        /// </summary>
        public string CategoryId
        {
            set { categoryid = value; }
            get { return categoryid; }
        }
        /// <summary>
        /// 所属目录
        /// </summary>
        public string CategoryName
        {
            set { categoryname = value; }
            get { return categoryname; }
        }
        /// <summary>
        /// 目录编号
        /// </summary>
        public string CategoryNumber
        {
            set;
            get;
        }
        /// <summary>
        /// 简介，摘要
        /// </summary>
        public string Resume
        {
            set { resume = value; }
            get { return resume; }
        }
        /// <summary>
        /// 0 原创， 1 转载
        /// </summary>
        public int SourceType
        {
            set { sourcetype = value; }
            get { return sourcetype; }
        }
        /// <summary>
        /// 转载链接
        /// </summary>
        public string NewsURL
        {
            set { newsurl = value; }
            get { return newsurl; }
        }
        /// <summary>
        /// 标题图片
        /// </summary>
        public string TitlePic
        {
            set { titlepic = value; }
            get { return titlepic; }
        }
        /// <summary>
        /// 添加人姓名
        /// </summary>
        public string CreateByName
        {
            set { createbyname = value; }
            get { return createbyname; }
        }
        /// <summary>
        /// ID
        /// </summary>
        public string ArticleId
        {
            set { articleId = value; }
            get { return articleId; }
        }
        /// <summary>
        /// 文章编号
        /// </summary>
        public decimal ArticleNumber
        {
            set { articleNumber = value; }
            get { return articleNumber; }
        }
        /// <summary>
        /// 文章类型
        /// </summary>
        public int TypeCode
        {
            set { typecode = value; }
            get { return typecode; }
        }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title
        {
            set { title = value; }
            get { return title; }
        }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keyword
        {
            set { keyword = value; }
            get { return keyword; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content
        {
            set { content = value; }
            get { return content; }
        }
        /// <summary>
        /// 文章版权
        /// </summary>
        public string Copyright
        {
            set { copyright = value; }
            get { return copyright; }
        }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author
        {
            set { author = value; }
            get { return author; }
        }
        /// <summary>
        /// 来源
        /// </summary>
        public string Source
        {
            set { source = value; }
            get { return source; }
        }
        /// <summary>
        /// 首页显示
        /// </summary>
        public bool IsShowIndex
        {
            set { isShowIndex = value; }
            get { return isShowIndex; }
        }
        /// <summary>
        /// 审核
        /// </summary>
        public bool IsApproved
        {
            set { isapproved = value; }
            get { return isapproved; }
        }
        /// <summary>
        /// 置顶
        /// </summary>
        public bool IsTop
        {
            set { istop = value; }
            get { return istop; }
        }
        /// <summary>
        /// 状态
        /// </summary>
        public int StatusCode
        {
            set { statuscode = value; }
            get { return statuscode; }
        }
        /// <summary>
        /// 添加人
        /// </summary>
        public string CreatedBy
        {
            set { createdby = value; }
            get { return createdby; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime CreatedOn
        {
            set { createdon = value; }
            get { return createdon; }
        }
        /// <summary>
        /// 信息发布时间
        /// </summary>
        public DateTime PublishDate
        {
            set { publishdate = value; }
            get { return publishdate; }
        }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifiedBy
        {
            set { modifiedby = value; }
            get { return modifiedby; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifiedOn
        {
            set { modifiedon = value; }
            get { return modifiedon; }
        }
        /// <summary>
        /// 标签间，隔符"|"
        /// </summary>
        public string Tags
        {
            set { tags = value; }
            get { return tags; }
        }
        /// <summary>
        /// 电击率
        /// </summary>
        public long Hits
        {
            set { hits = value; }
            get { return hits; }
        }
    }
}
